﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebmasterRequest.aspx.cs" Inherits="University.Workshop.WebApp.WebmasterRequest" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style=' margin-bottom:10px;background-color: #4b6c9e; color: White;'>
        <h4 style='margin-top: 4px; font-size: large; color: White'>
           &nbsp;>Webmaster Request Form
        </h4>
    </div>
    <asp:MultiView runat="server" ID="MultiViewSeeForm">
        <asp:View runat="server" ID="SeeForm">
            <div style="margin-top: 10px; margin-bottom: 5px;">
                <h4 style='margin-bottom: 10px; background-color: #4b6c9e; font-size: large; color: White;
                    width: 320px; font-size: medium; -moz-border-radius: 5px; -webkit-border-radius: 5px;
                    border-radius: 5px;'>
                    &nbsp;>Skills
                </h4>
            </div>
            <div style="margin-bottom: 10px;">
                <label>
                    Here you should put some skills you have for which we should choose you</label>
            </div>
            <div>
                <asp:Label runat="server" ID="lblMessage" Text="" ForeColor="Red" Visible="False"></asp:Label></div>
            <div>
                <asp:TextBox ID="txtSkills" TextMode="MultiLine" Height="170" Width="425" runat="server"
                    MaxLength="1000" onKeyUp="Count(this,1000)" onChange="Count(this,1000)"></asp:TextBox>
                <script type="text/javascript">
                    function Count(text, long) {
                        var maxlength = new Number(long);
                        if (text.value.length > maxlength) {
                            text.value = text.value.substring(0, maxlength);
                            alert(" You can put only up to " + long + " chars");
                        }
                    }
                </script>
                <asp:ToolkitScriptManager runat="server" ID="scriptMan" />
                <asp:TextBoxWatermarkExtender runat="server" ID="tbWM" TargetControlID="txtSkills"
                    WatermarkText="Describe your skills in at least 200 chars..." WatermarkCssClass="watermark" />
                <style>
                    .watermark
                    {
                        color: grey;
                        font-style: italic;
                    }
                </style>
            </div>
            <div style="margin-bottom: 7px; margin-top: 5px">
                <h3>
                    What job(s) would you want to have</h3>
            </div>
            <div>
                <asp:CheckBox runat="server" ID="chkWantReplyTickets" Text="Reply tickets" />
                <asp:CheckBox runat="server" ID="chkWantSetWebmasters" Text="Set new webmasters" />
            </div>
            <div style="margin-bottom: 7px; margin-top: 5px">
                <h3>
                    Terms and conditions</h3>
            </div>
            <div>
                <asp:CheckBox runat="server" ID="chkTermsAndConditions" Text="I have read and accept the" />
                <a href="WebmasterTermsAndConditions.aspx" target="_blank">terms and conditions
                    <style>
                        a:hover
                        {
                            text-decoration: underline;
                        }
                        a
                        {
                            text-decoration: none;
                        }
                    </style>
                </a>
            </div>
            <div style="margin-top: 10px; margin-bottom: 45px;">
                <asp:Button runat="server" ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" />
            </div>
        </asp:View>
        <asp:View runat="server" ID="NoForm">
            <h4 style="font-size: medium">You already are a webmaster!</h4>
        </asp:View>
        <asp:View runat="server" ID="AlreadyHaveRequest">
            <h4 style="font-size: medium">You already have a webmaster request pending, it has status: in voting!</h4>
            <div><label>Votes:</label>&nbsp;<asp:Label runat="server" ID="lblPositives" ForeColor="green"/>&nbsp;<asp:Label runat="server" ID="lblNegatives" ForeColor="red"/></div>
        </asp:View>
    </asp:MultiView>
</asp:Content>
